package com.lej.home.pay

import com.lej.core.base.BaseModel
import com.lej.core.base.BaseViewModel
import com.lej.dataservice.club.http.request
import com.lej.home.http.homeApiService

/**
 *  author: cjq
 *  date  : 2022/7/18 0018
 *  desc  :
 */
class HomePayResultVM : BaseViewModel<BaseModel>() {
    var buyId = -1  //购买id
    var orderId = -1  //求购id

    fun buyOrderDetail() =
        request { homeApiService.buyPayDetail(buyId) }

    fun orderDetail() =
        request { homeApiService.orderPayDetail(orderId) }
}